package com.xinya.wanandroidclient.ui.tab

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.xinya.wanandroidclient.base.BaseViewModel
import com.xinya.wanandroidclient.bean.ProjectClassificationBean

/**
 *
 * @ClassName:      TabViewModel$
 * @Description:    java类作用描述
 * @Author:         xinya
 * @CreateDate:     2021/3/2$ 15:49$
 * @UpdateRemark:   更新内容
 * @Version:        1.0
 */
class TabViewModel : BaseViewModel() {
    private val repo by lazy {
        TabRepo(viewModelScope)
    }

    val tabListLiveData by lazy {
        MutableLiveData<MutableList<ProjectClassificationBean>>()
    }

    fun getTabList(type: Int) {
        repo.getTabList(type, tabListLiveData)
    }
}